class GoodStudent:
    def __init__(self,name,score):
        self.name = name
        self.score = score
    def say_score(self):
        print("{0}的分数是{1}".format(self.name,self.score))
s1 = GoodStudent("ljx",18)
s1.say_score()

s2 = GoodStudent("gao xi xi",100)
s2.say_score()
GoodStudent.say_score(s2)
print(dir(s2))

print(s2.__dict__)
print(isinstance(s2,GoodStudent))

class Man:
    pass

#2572257155


class Student:
	pass
print(type(Student))
print(id(Student))

Stu2 = Student
s1 = Stu2()
print(s1)

class BadStudent:
    company = "SXT"
    @classmethod
    def printCompany(cls):
        print(cls.company)
BadStudent.printCompany()

class StaticStudent:
    company = "STATIC"
    @staticmethod
    def add(a,b):
        print("{0}+{1}={2}".format(a,b,(a+b)))
        return a+b
StaticStudent.add(20,30)

class Person:
    def __del__(self):
        print("销毁对象{0}".format(self))
p1 = Person()
p2 = Person()
del p2
print("voer")
